package com.netx.cubigraf.entities;
import com.netx.generics.time.Moment;
import com.netx.data.DatabaseException;
import com.netx.data.Entity;
import com.netx.data.ValueList;


public class NaoFacturados extends Entity {

	public NaoFacturados() {
	}
	
	// for Servicos:
	// (assumes a transaction has been started)
	public void adicionarLinha(long cdgServico, double preco) throws DatabaseException {
		ValueList values = new ValueList();
		values.addValue("cdg_servico", cdgServico);
		values.addValue("preco", preco);
		values.addValue("data_aprecado", new Moment().getDate());
		insert(values);
	}

	// for Servicos:
	// (assumes a transaction has been started)
	public void removerLinha(long cdgServico) throws DatabaseException {
		delete(cdgServico);
	}
	
}
